import request from '@/utils/request'

function getList(params) {
  return request({
    url: '/exchange/GetList',
    method: 'post',
    data: {},
    params
  })
}
function add(data) {
  return request({
    url: '/exchange/Add',
    method: 'post',
    data
  })
}
/**
 *
 * @param {} data (string exchangeId, string Pair, bool isLong)
 */
function fastClosing(data) {
  return request({
    url: '/exchange/FastClosing',
    method: 'post',
    params: data
  })
}
export default {
  getList,
  add,
  fastClosing

}
